package autowire;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("autowire/autowire.xml");
//        TextEditer editer = (TextEditer) context.getBean("textEditer");
        TextEditer editer = (TextEditer) context.getBean("textEidter2");
        editer.check();
        editer.getName();
    }
}
